/*
 * File Name：Questions.java
 * Copyright：Copyright 2008-2015 CiWong.Inc. All Rights Reserved.
 * Description： Questions.java
 * Modify By：bin
 * Modify Date：2015年1月17日
 * Modify Type：Add
 */
package com.ciwong.epaper.modules.epaper.bean;

import com.ciwong.epaper.modules.dbbean.LswAnswer;
import com.ciwong.mobilelib.bean.BaseBean;

import java.util.List;

/**
 * 题干
 *
 * @author bin
 * @version ciwong v.1.0 2015年1月17日
 * @since ciwong v.1.0
 */
public class Questions extends BaseBean {
//    private static final long serialVersionUID = 4312666910611914631L;
    /**
     * 题目类型(1:选择题 6:简答题 7:模仿朗读)
     */
    private int type;


    /**
     * 客观题ture
     */

    private int is_objective = 1;


    /**
     * 题目版本ID
     */
    private String versionId;

    /**
     * 题目类型ID
     */
    private String moduleId;

    /**
     * 题目结构体
     */
    private OptionDetail trunk;

    /**
     * 选项集合
     */
    private List<OptionInfo> options;

    /**
     * 子题集合,子题结构和题目上面一样
     */
    private List<Questions> children;

    /**
     * 小题序号
     */
    private String sort;
    /**
     * 题目播放规则
     */
    private QuestionRule listeningAndSpeakingRule;

    public LswAnswer getLswAnswer() {
        return lswAnswer;
    }

    public void setLswAnswer(LswAnswer lswAnswer) {
        this.lswAnswer = lswAnswer;
    }

    /**
     * 添加本地额外字段，答案 LswAnswer
     */
    private LswAnswer lswAnswer;

    /**
     * 增加  最后小题播放音频
     */
    private String endAudioUrl;


    public String getEndAudioUrl() {
        return endAudioUrl;
    }

    public void setEndAudioUrl(String endAudioUrl) {
        this.endAudioUrl = endAudioUrl;
    }

    public QuestionRule getListeningAndSpeakingRule() {
        return listeningAndSpeakingRule;
    }

    public void setListeningAndSpeakingRule(QuestionRule listeningAndSpeakingRule) {
        this.listeningAndSpeakingRule = listeningAndSpeakingRule;
    }


    public int getIs_objective() {
        return is_objective;
    }

    public void setIs_objective(int is_objective) {
        this.is_objective = is_objective;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public OptionDetail getTrunk() {
        return trunk;
    }

    public void setTrunk(OptionDetail trunk) {
        this.trunk = trunk;
    }

    public List<OptionInfo> getOptions() {
        return options;
    }

    public void setOptions(List<OptionInfo> options) {
        this.options = options;
    }

    public List<Questions> getChildren() {
        return children;
    }

    public void setChildren(List<Questions> children) {
        this.children = children;
    }

    /**
     * 题目类型常量类
     *
     * @author bin
     */
    public static class QuestionType {
        /**
         * 题目类型:1选择题 2是多选题
         */
        public static final int QUESTION_TYPE_CHOICE = 1;

        /**
         * 题目类型：填空题
         */
        public static final int QUESTION_TYPE_FILL_BLANK = 3;

        /**
         * 题目类型:阅读理解题
         */
        public static final int QUESTION_TYPE_READ = 5;

        /**
         * 题目类型:简答题
         */
        public static final int QUESTION_TYPE_SHORT = 6;

        /**
         * 题目类型:模仿朗读
         */
        public static final int QUESTION_TYPE_IMITATE_READ = 7;

        /**
         * 题目类型:长对话
         */
        public static final int QUESTION_TYPE_LONG_CONVERSATION = 11;

        /**
         * 长对话
         */
        public static final int QUESTION_TYPE_LONG_TRAIL = 11;


        /**
         * SHORT对话
         */
        public static final int QUESTION_TYPE_SHORT_TRAIL = 1;

    }


    /**
     * 题目类型常量类
     *
     * @author bin
     */
    public static class AnswerType {
        /**
         * 上传答案类型:录音题
         */
        public static final int QUESTION_TYPE_VOICE = 1;
        /**
         * 上传答案类型:选择题
         */
        public static final int QUESTION_TYPE_CHOICE = 2;

        /**
         * 上传答案类型：填空题
         */
        public static final int QUESTION_TYPE_FILL_BLANK = 3;


    }


}
